# -*- coding: utf-8 -*-
#写入日志
class Log:
   __obj__ = False
   def __init__(self):
       Log.__obj__ = self
   
   @staticmethod
   def getInstance():
       if(Log.__obj__):
           return Log.__obj__
       else:
           return Log()
   def write (self, path, context):
       with open(path, "a+") as fp:
           fp.write(context+"\n")
           fp.close()
       return context


